{?*
显示不同级别的提示信息
*?}

{?*
判断存放错误信息的数组是否存在且不为空
*?}

{?if $message|@is_array || $message|strlen > 0?}

	{? assign var=has_message value=true?}
{?else?}

	{? assign var=has_message value=false?}
{?/if?}

{?if $has_message?}

{?foreach key=key item=item from=$message?}

	 {?assign var=$key value=$item?}
{?/foreach?}

<div class="{?$type?}"> 
 	 {?$content?}
</div>

{?/if?}

